"use strict";

/**
 *
 *      App路由
 *
 * */

import App from "../../views/App/App" ;
//Mobile
import MobileHome from "./MobileHome/index";
import MobileMine from "./MobileMine/index";
import FilmDetail from "./MobileFilmDetail/index";
import MobileDemand from "./MobileDemand/index";
import DemandDetail from './DemandDetail';
import CampaignDetail from './CampaignDetail'

export default (store) => ({
    path: "App",

    getComponent (nextState, callback) {
        require.ensure([], (require) => {
            callback(null,require("../../views/App/App").default)
        }, "App")
    },

    childRoutes : [
        //移动端
        MobileMine(),//个人主页
        MobileHome(),//首页
        FilmDetail(),//作品详情
        MobileDemand(),//需求大厅
        DemandDetail(),//需求大厅
        CampaignDetail(),//活动
    ]
})
